<template>
  <div class="components-page">
    <Header></Header>
    <Nav :left="left"></Nav>
    <div class="page-body">
      <div class="page-wraper">
        <router-view class="content-wrapper md" />
      </div>
    </div>
  </div>
</template>

<script>
import Header from '@/components/Header.vue'
import Nav from '@/components/Nav.vue'

export default {
  components: {
    Header,
    Nav
  },
  data() {
    return {
      left: 0
    }
  }
}
</script>

<style lang="less">
@import '../style/size.less';
.components-page {
  position: relative;
  height: 100%;
  width: 100%;
  padding-top: @header-height;
  padding-left: 215px;
  box-sizing: border-box;

  .page-body {
    position: relative;
    height: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden auto;

    .page-wraper {
      padding-right: 20px;
      position: relative;
      width: 100%;
      padding-left: 20px;
      padding-bottom: 50px;
      margin: 0;
      box-sizing: border-box;
    }
  }
}
</style>
